This example shows how
to insert a dynamic block from a tool palette and change its dynamic
properties using the Properties palette.
In this
example, you learn how to
- Record and save an action macro
- Record actions from the Tool Palettes
window
- Modify an object using the Properties
palette
- Remove action nodes from an action macro
- Insert Base Point
- Play back an action macro
Start Recording an Action
Macro
You start recording actions
on the Action Recorder panel. To display the Action Recorder panel
and to start recording, follow these steps:
- On the ribbon, click the Manage tab.
- On the Action Recorder panel, click Record.
Record Actions from the
Tool Palettes Window
You can use tools from
a tool palette and then play back the action that is performed by
a tool. From the Tool Palettes window, you will place the I Beam
- Imperial dynamic block from the Structural tool palette. Follow
these steps:
- At the Command prompt, enter toolpalettes to
display the Tool Palettes window.
- At the Command prompt, enter properties to
display the Properties palette.
- In the Tool Palettes window, under the
All Palettes group, click the Structural tab.
- On the Structural tab, click the I Beam
- Imperial tool.
- On the Properties palette, under the
Custom category, click the Beam Sizes field.
- On the Beam Sizes drop-down list, select
IPE A 140.
- In the drawing window, specify the insertion
point for the block.
Stop Recording and Save
an Action Macro
After all the actions
have been recorded, you stop recording and save the recorded actions
to an action macro file. Follow these steps:
- On the Action Recorder panel, click Stop.
- In the Action Macro dialog box, do the
following
- In the Action Macro Command Name box,
enter InsertIPEA140.
- In the Description box, enter Inserts
an IPE A 140 beam.
- Click OK.
Remove Action Nodes
When you record an action
macro, at times additional actions are recorded that you do not
need. For example, while recording the action macro you displayed
the Tool Palettes window and the Properties palette. Those action nodes
are not needed in order to play back the action macro. To remove action
nodes from the action macro, follow these steps:
- On the Action Recorder panel, click the
title bar to expand the panel.
- In the Action tree, select the TOOLPALETTES
action node under the Action Macro node and right-click. Click Delete.
- Select the Properties action node and
right-click. Click Delete.
Play Back the Action Macro
When you play back the
action macro, you are prompted to specify the insertion point of
the block. To see the results of the action macro, follow these steps:
- On the Action Recorder panel, on the
Action Macro list, select InsertIPEA140.
- Click Play.
- When prompted to specify a base point,
click a base point in the drawing window to insert the block.
As the block is inserted,
the beam size selected on the Properties palette is reflected on-screen.
- In the Action Macro - Playback Complete
dialog box, click OK.
CommandsACTRECORD
Starts
the Action Recorder.
ACTSTOP
Stops
the Action Recorder and provides the option of saving the recorded actions
to an action macro file.
PROPERTIES
Controls properties
of existing objects.
RIBBONTOOLPALETTES
Opens the Tool Palettes
window.